/**
 * 
 */
package other;

/**
 * @author Ashish
 *
 */
public class DivideOp extends BinOperator{
	  Expression perform(Expression expA, Expression expB)
	  {
	      if (expB.getValue() != 0.0) {   
	    	  return new Literal(expA.getValue() / expB.getValue());
	      } else {
	    	  return new Literal(0.0);
	      }
	  }


}
